<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header">
</head>

<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <form th:action="@{/userOnes/save}" th:object="${userOne}" method="POST">
        <div>
            <tr>
                <td class="td_left"><label for="name">用户姓名:</label></td>
                <td class="td_right"><input type="text" name="name" id="name" placeholder="请输入姓名" th:field="*{admName}"></td>
            </tr>
            <br><br>
            借阅时间：<input type="text" name="ETime" id="myDate"  th:field="*{userGender}">
            <script langguage="JavaScript">
            var now = new Date();
            myDate.value=new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate();
            </script>
            <br><br>
            归还时间：<input type="text" name="ETime" id="orderDate"  th:field="*{birthday}">
            <script langguage="JavaScript">
            var now = new Date();
            orderDate.value=(new Date().getFullYear() + 1 ) + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate();
            </script>
        </div>
        <br><br>

        <div class="form-group">
            <div class="col-sm-6">
                借阅书籍：<select class="form-control" th:field="*{borrows}" multiple="multiple">
                    <option th:each="borrow: ${allBorrows}" th:value="${borrow.bookId}" th:text="${borrow.borrowBook}"}></option>
                </select>
            </div>
        </div>
        <br><br>

        <br><br>
        <button type="reset" class="btn btn-default btn-sm">重写</button>
        <button type="submit" class="btn btn-default btn-sm">提交</button>

    </form>
</div>
</body>
</html>